-
The
MGLLocationManager
protocol defines a set of methods that a class must implement in order to serve as the location manager of anMGLMapView
. A location manager is responsible for notifying the map view about location-related events, such as a change in the user’s location. This protocol is similar to the Core Location framework’sCLLocationManager
class, but your implementation does not need to be based onCLLocationManager
.To receive location updates from an object that conforms to the
See moreMGLLocationManager
protocol, use the optional methods available in theMGLLocationManagerDelegate
protocol.Declaration
Objective-C
@protocol MGLLocationManager <NSObject>
Swift
protocol MGLLocationManager : NSObjectProtocol
-
The
See moreMGLLocationManagerDelegate
protocol defines a set of methods that respond to location updates from anMGLLocationManager
object that is serving as the location manager of anMGLMapView
.Declaration
Objective-C
@protocol MGLLocationManagerDelegate <NSObject>
Swift
protocol MGLLocationManagerDelegate : NSObjectProtocol